package com.green.controller;

import com.green.service.TbExcelService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@RequiredArgsConstructor
public class TbExcelController {

    private final TbExcelService tbExcelService;

    @GetMapping("/generateData")
    public void generateData() {
        tbExcelService.generateData();
    }

    @GetMapping("/init")
    public void init() {
        tbExcelService.init();
    }
}
